/***
 * 子窗口对父窗口Dom元素的操作
 * @param id
 * @returns
 */
//获取父窗口的某个Dom对象
function getFatherDom(id){
	return $(window.parent.document).find("#"+id);
}
//获取父窗口的某个Dom对象的值
function getFatherDomVal(id){
	return $(window.parent.document).find("#"+id).val();
}
//设置父窗口的某个Dom对象的值
function setFatherDomVal(id,value){
	$(window.parent.document).find("#"+id).val(value);
}

function getSonDom(fid,sid){
	return $("#"+sid,getIFrameDOM(fid));
}
function getSonDomVal(fid,sid){
	return $("#"+sid,getIFrameDOM(fid)).val();
}
function setSonDomVal(fid,sid,value){
	return $("#"+sid,getIFrameDOM(fid)).val(value);
}


function getIFrameDOM(id){
	return document.getElementById(id).contentDocument || document.frames[id].document; 
}

